﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Empires.PL.ServiceClient
{
    public static class AppUserServiceClient
    {
        public static int ExistUserName(string username)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
               new Empires.BLL.AppEngine.Implement.UserService();
            return service.ExistUserName(username);
        }
        public static string GetUserWebSiteName(string username)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
                new Empires.BLL.AppEngine.Implement.UserService();
            return service.GetUserWebSiteName(username);
        }
        public static bool UserLogin(string username, string password, bool remember)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
                new Empires.BLL.AppEngine.Implement.UserService();
            return service.UserLogin(username, password, remember);
        }
        public static int NewUserRegister(string username, string password, string nickname, bool sex, string birthday, string contact, string appellaction, string address)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
                new Empires.BLL.AppEngine.Implement.UserService();
            return service.NewUserRegister(username, password,nickname,sex,birthday,contact,appellaction,address);
        }
        public static int GetUserStatus(string username)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
                new Empires.BLL.AppEngine.Implement.UserService();
            return service.GetUserStatus(username);
        }
        public static string GetUserNickname(string username)
        {
            Empires.BLL.AppEngine.IService.IUserService service =
                  new Empires.BLL.AppEngine.Implement.UserService();
            return service.GetUserNickname(username);
        }
    }
}
